﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Test.aspx.cs" Inherits="EXAM.Admin.Page_Admin.Test" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .multipleRowsColumns .rcbItem, .multipleRowsColumns .rcbHovered
        {
            float: left;
            margin: 0 1px;
            min-height: 13px;
            overflow: hidden;
            padding: 2px 19px 2px 6px;
            width: 125px;
        }
        html.rfdButton a.rfdSkinnedButton
        {
            vertical-align: middle;
            margin: 0 0 0 5px;
        }
        label
        {
            display: inline-block;
            width: 200px;
            text-align: right;
            padding-right: 5px;
            margin-top: 10px;
        }
        * html.rfdButton a.rfdSkinnedButton, * html.rfdButton input.rfdDecorated
        {
            vertical-align: top;
        }
        .rcbHeader ul, .rcbFooter ul, .rcbItem ul, .rcbHovered ul, .rcbDisabled ul
        {
            width: 100%;
            display: inline-block;
            margin: 0;
            padding: 0;
            list-style-type: none;
        }
        .col1, .col2, .col3
        {
            float: left;
            width: 110px;
            margin: 0;
            padding: 0 5px 0 0;
            line-height: 14px;
        }
        .style1
        {
            height: 24px;
        }
        .style2
        {
            color: #0000FF;
            font-weight: bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlacebody" runat="server">
    <telerik:RadAjaxManager ID="RadAjaxManagerProxy1" runat="server" EnableAJAX="true">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="cboANAL_T0">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="cboANAL_T2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td align="center" class="formTitle">
                Test Management
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
                <asp:Label ID="lbErr" runat="server" ForeColor="Red"></asp:Label>
                <table>
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td class="style2">
                                        Type
                                    </td>
                                    <td>
                                        <telerik:RadComboBox ID="cboType" runat="server" OnItemDataBound="cboType_ItemDataBound"
                                            MarkFirstMatch="true" HighlightTemplatedItems="true" AutoPostBack="True" OnSelectedIndexChanged="cboType_SelectedIndexChanged">
                                            <HeaderTemplate>
                                                <ul>
                                                    <li class="col1">Code</li>
                                                    <li class="col2">Name</li>
                                                </ul>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <ul>
                                                    <li class="col1">
                                                        <%# DataBinder.Eval(Container.DataItem, "Code") %></li>
                                                    <li class="col2">
                                                        <%# DataBinder.Eval(Container.DataItem, "Name") %></li>
                                                </ul>
                                            </ItemTemplate>
                                        </telerik:RadComboBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b style="color: #0000FF">General</b>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Name
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="txtName" runat="server">
                                        </telerik:RadTextBox>
                                        <telerik:RadTextBox ID="txtID" runat="server" Visible="False" Width="50px">
                                        </telerik:RadTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Description
                                    </td>
                                    <td>
                                        <telerik:RadTextBox ID="txtDescription" runat="server" Width="200px">
                                        </telerik:RadTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Begin Time
                                    </td>
                                    <td>
                                        <telerik:RadDatePicker ID="dpTimeB" runat="server" MinDate="1900-01-01">
                                            <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                            </Calendar>
                                            <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                            <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy">
                                            </DateInput>
                                        </telerik:RadDatePicker>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        End Time
                                    </td>
                                    <td>
                                        <telerik:RadDatePicker ID="dpTimeE" runat="server" MinDate="1900-01-01">
                                            <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                            </Calendar>
                                            <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                            <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy">
                                            </DateInput>
                                        </telerik:RadDatePicker>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Duration
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="txtDuration" runat="server" Value="0">
                                            <NumberFormat DecimalDigits="0" />
                                        </telerik:RadNumericTextBox>
                                        (min)
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        IP Range
                                    </td>
                                    <td>
                                        <telerik:RadMaskedTextBox ID="txtRangeIP" runat="server" Mask="###.###.###.###" PromptChar="0"
                                            TextWithLiterals="999.999.999.999" Width="125px">
                                        </telerik:RadMaskedTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Results To User
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="ckR2U" runat="server" />
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Enabled
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="ckEnable" runat="server" />
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <b style="color: #0000FF">Score</b>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Score Right
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="txtRightS" runat="server" Value="0">
                                            <NumberFormat DecimalDigits="0" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Score_Wrong
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="txtWrongS" runat="server" Value="0">
                                            <NumberFormat DecimalDigits="0" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Max_Score
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="txtMaxS" runat="server" Value="0">
                                            <NumberFormat DecimalDigits="0" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Pass_Score
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="txtPassS" runat="server" Value="0">
                                            <NumberFormat DecimalDigits="0" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td>
                                        <b style="color: #0000FF">Template</b>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Random_Question_S
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="ckRanQS" runat="server" />
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Random_Answers_S
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="ckRanAS" runat="server" />
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Random_Question_O
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="ckRanQO" runat="server" />
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Random_Answers_O
                                    </td>
                                    <td>
                                        <asp:CheckBox ID="ckRanAO" runat="server" />
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Logout_On_Timeout
                                    </td>
                                    <td>
                                        <telerik:RadNumericTextBox ID="txtTimeout" runat="server" Value="0">
                                            <NumberFormat DecimalDigits="0" />
                                        </telerik:RadNumericTextBox>
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <table>
                    <tr>
                        <td style="color: #0000FF; font-weight: bold">
                            Analysis
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            Category
                        </td>
                        <td class="style1">
                            <telerik:RadComboBox ID="cboANAL_T0" runat="server" EmptyMessage="Choose a Product type"
                                AllowCustomText="True" AutoPostBack="True" OnSelectedIndexChanged="cboANAL_T0_SelectedIndexChanged"
                                Width="300px">
                            </telerik:RadComboBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Topic
                        </td>
                        <td>
                            <telerik:RadComboBox ID="cboANAL_T2" runat="server" EmptyMessage="Choose a Product type"
                                AllowCustomText="True" Width="300px">
                            </telerik:RadComboBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Level
                        </td>
                        <td>
                            <telerik:RadComboBox ID="cboANAL_T1" runat="server" EmptyMessage="Choose a Level"
                                AllowCustomText="True">
                            </telerik:RadComboBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Data Access
                        </td>
                        <td>
                            <telerik:RadComboBox ID="cboANAL_T9" runat="server" EmptyMessage="Choose a Product type"
                                AllowCustomText="True" AutoPostBack="True" Width="300px">
                            </telerik:RadComboBox>
                        </td>
                    </tr>
                </table>
                <div style="margin: auto; width: 600px">
                    <telerik:RadButton ID="btnNew" runat="server" Text="Add New" SplitButtonCssClass=""
                        SplitButtonPosition="Right" OnClick="btnNew_Click" Width="100px">
                    </telerik:RadButton>
                    <telerik:RadButton ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click"
                        Width="100px">
                    </telerik:RadButton>
                    <telerik:RadButton ID="btnDelete" runat="server" Text="Delete" OnClick="btnDelete_Click"
                        Width="100px">
                    </telerik:RadButton>
                    <telerik:RadButton ID="btnTemplate" runat="server" Text="Template" OnClick="btnDetail_Click"
                        Enabled="False" Width="100px">
                    </telerik:RadButton>
                    <telerik:RadButton ID="btnPrint" runat="server" Text="Print" OnClick="btnPrint_Click"
                        Enabled="False" Width="100px">
                    </telerik:RadButton>
                </div>
                <br />
                <br />
                <div style="width: 100%">
                    <telerik:RadGrid ID="dgvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                        Skin="Office2007" AllowFilteringByColumn="True" AllowMultiRowSelection="True"
                        AllowPaging="True" AllowSorting="True" OnItemCommand="dgvList_ItemCommand" ShowGroupPanel="True"
                        OnNeedDataSource="dgvList_NeedDataSource">
                        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Office2007">
                        </HeaderContextMenu>
                        <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true"
                            FileName="Test">
                            <Excel Format="ExcelML" />
                        </ExportSettings>
                        <MasterTableView PageSize="20" DataKeyNames="ID" CommandItemDisplay="Top">
                            <CommandItemSettings ShowRefreshButton="false" ShowExportToExcelButton="true" ShowAddNewRecordButton="false"
                                ExportToExcelText="Export to Excel" />
                            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </RowIndicatorColumn>
                            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                <HeaderStyle Width="20px"></HeaderStyle>
                            </ExpandCollapseColumn>
                            <Columns>
                                <telerik:GridButtonColumn CommandName="Selected" Text="Edit" UniqueName="column1">
                                </telerik:GridButtonColumn>
                                <telerik:GridClientSelectColumn FilterControlAltText="Filter column column" UniqueName="column8">
                                </telerik:GridClientSelectColumn>
                                <telerik:GridBoundColumn FilterControlAltText="Filter column2 column" HeaderText="ID"
                                    UniqueName="column2" DataField="ID" Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn FilterControlAltText="Filter column3 column" HeaderText="Name"
                                    UniqueName="column3" DataField="Name">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn FilterControlAltText="Filter column4 column" HeaderText="Description"
                                    UniqueName="column4" DataField="Description">
                                </telerik:GridBoundColumn>
                                <telerik:GridDateTimeColumn FilterControlAltText="Filter column5 column" HeaderText="Begin Time"
                                    UniqueName="column5" DataField="Begin_Time_" DataFormatString="{0:dd/MM/yyyy}"
                                    Visible="False">
                                </telerik:GridDateTimeColumn>
                                <telerik:GridDateTimeColumn FilterControlAltText="Filter column6 column" HeaderText="End Time"
                                    UniqueName="column6" DataField="End_Time_" DataFormatString="{0:dd/MM/yyyy}"
                                    Visible="False">
                                </telerik:GridDateTimeColumn>
                                <telerik:GridBoundColumn DataField="Duration_Time" HeaderText="Duration" UniqueName="column7"
                                    FilterControlAltText="Filter column7 column">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn FilterControlAltText="Filter column11 column" HeaderText="Right Score"
                                    UniqueName="column11" DataField="Score_Right" Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn FilterControlAltText="Filter column12 column" HeaderText="Wrong Score"
                                    UniqueName="column12" DataField="Score_Wrong" Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Max_Score" FilterControlAltText="Filter column13 column"
                                    HeaderText="Max Score" UniqueName="column13" Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Pass_Score" FilterControlAltText="Filter column14 column"
                                    HeaderText="Pass Score" UniqueName="column14" Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Results_To_User" FilterControlAltText="Filter column column"
                                    HeaderText="Results To User" UniqueName="column21" DataType="System.Boolean"
                                    Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Random_Question_S" FilterControlAltText="Filter column9 column"
                                    HeaderText="Question S" UniqueName="column9" DataType="System.Boolean" Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Random_Answers_S" FilterControlAltText="Filter column15 column"
                                    HeaderText="Answers S" UniqueName="column15" DataType="System.Boolean" Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Random_Question_O" FilterControlAltText="Filter column10 column"
                                    HeaderText="Question O" UniqueName="column10" DataType="System.Boolean" Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Random_Answers_O" FilterControlAltText="Filter column16 column"
                                    HeaderText="Answers O" UniqueName="column16" DataType="System.Boolean" Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Logout_On_Timeout" FilterControlAltText="Filter column17 column"
                                    HeaderText="Timeout" UniqueName="column17" Visible="False">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="ANAL_T0" FilterControlAltText="Filter column22 column"
                                    HeaderText="Category" UniqueName="column22">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="ANAL_T2" FilterControlAltText="Filter column column"
                                    HeaderText="Topic" UniqueName="column24">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="ANAL_T1" FilterControlAltText="Filter column column"
                                    HeaderText="Level" UniqueName="column23">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="ANAL_T9" FilterControlAltText="Filter column column"
                                    HeaderText="Group" UniqueName="column">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="Type" FilterControlAltText="Filter column18 column"
                                    HeaderText="Type" UniqueName="column18">
                                </telerik:GridBoundColumn>
                                <telerik:GridButtonColumn CommandName="Detail" Text="Detail" UniqueName="column20">
                                </telerik:GridButtonColumn>
                                <telerik:GridBoundColumn DataField="Enabled" FilterControlAltText="Filter column19 column"
                                    HeaderText="Enable" UniqueName="column19" DataType="System.Boolean" ReadOnly="true">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <EditFormSettings>
                                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                </EditColumn>
                            </EditFormSettings>
                        </MasterTableView>
                        <ClientSettings AllowDragToGroup="True">
                            <Selecting AllowRowSelect="True" />
                        </ClientSettings>
                        <FilterMenu EnableImageSprites="False">
                        </FilterMenu>
                    </telerik:RadGrid>
                </div>
                <br />
            </td>
        </tr>
    </table>
</asp:Content>
